<?php

namespace Modules\Admin\Http\Controllers\Subscribe;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Modules\Common\General\Security\Api\Gateway;
use Modules\Common\Models\AdminLog;
use Modules\Common\Models\SubscriptionTypes;
use Modules\Common\Util\Api;
use Modules\Common\Util\Database;


class Disable 
{


    /**
     *@Route(path=/api/admin/subscribe/disable  method=put)
    */
    public function index()
    {
        Api::validate(['id' => 'integer', 'status' => 'integer|in:1,2']);
        SubscriptionTypes::safeUpdateWithRequestParams(['status']);

        return Api::success();
    }


}
